<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script src="./treeRouter.js"></script>
    <script>
        // function mergeSort(arr) {
        //     var len = arr.length;
        //     if (len < 2) {
        //         return arr;
        //     }
        //     var middle = Math.floor(len / 2),
        //         left = arr.slice(0, middle),
        //         right = arr.slice(middle);
        //     return merge(mergeSort(left), mergeSort(right));
        // }

        // function merge(left, right) {
        //     console.log(left, right)
        //     var result = [];
        //     while (left.length && right.length) {
        //         if (left[0] <= right[0]) {
        //             result.push(left.shift());
        //         } else {
        //             result.push(right.shift());
        //         }
        //     }

        //     while (left.length) result.push(left.shift());

        //     while (right.length) result.push(right.shift());

        //     return result;
        // }
        // var arr = [3, 44, 38, 5, 47, 15, 36, 26, 27, 2, 46, 4, 19, 50, 48];
        // console.log(mergeSort(arr));




        // const a = {
        //     b: {
        //         v: 1
        //     }
        // };
        // console.log(a)
        // a.b.v = 3
    </script>
</body>

</html>